<%@ include file="/WEB-INF/jsp/includes/include.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>


<form:form method="post" commandName="organisationSearch">
	<div id="validationErrors">
		<form:errors path="*" cssClass="error"/>
	</div>
	
	<fieldset>
		<legend>Search Fields</legend>
		<div>
			<label for="organisation.name">Name:</label>
			<form:input path="organisation.name" id="organisation.name" size="50" maxlength="100" cssClass="test" cssErrorClass="text_error"/>
			<form:errors path="organisation.name" id="organisationNameErrors" cssClass="error" />
		</div>
		<div>
			<label for="organisation.location.suburb">Suburb:</label>
			<form:input path="organisation.location.suburb" id="organisation.location.suburb" size="50" maxlength="100" cssClass="test" cssErrorClass="text_error"/>
			<form:errors path="organisation.location.suburb" id="organisationLocationSuburbErrors" cssClass="error" />
		</div>
		<div>
			<label for="organisation.location.city">City:</label>
			<form:input path="organisation.location.city" id="organisation.location.city" size="50" maxlength="100" cssClass="test" cssErrorClass="text_error"/>
			<form:errors path="organisation.location.city" id="organisationLocationCityErrors" cssClass="error" />
		</div>
		<div>
			<label for="organisation.location.state">State:</label>
			<form:select path="organisation.location.state" id="organisation.location.state">
				<form:option value="">ALL</form:option>
				<form:options items="${states}" />
			</form:select>
			<form:errors path="organisation.location.state" id="organisationLocationStateErrors" cssClass="error" />
		</div>
		
	</fieldset>
	
	<fieldset class="submit">
		<input type="submit" value="Search" class="submit"/>
	</fieldset>
</form:form>
